// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.randomizedWorld.randomizedDeadSurvivor;

import java.util.ArrayList;
import zombie.core.Rand;
import zombie.iso.BuildingDef;
import zombie.iso.RoomDef;

public final class RDSBathroomZed extends RandomizedDeadSurvivorBase {
    private final ArrayList<String> items = new ArrayList();

    public RDSBathroomZed() {
        this.name = "Bathroom Zed";
        this.setChance(12);
        this.items.add("Base.BathTowel");
        this.items.add("Base.Razor");
        this.items.add("Base.Lipstick");
        this.items.add("Base.Comb");
        this.items.add("Base.Hairspray");
        this.items.add("Base.Toothbrush");
        this.items.add("Base.Cologne");
        this.items.add("Base.Perfume");
    }

    @Override
    public void randomizeDeadSurvivor(BuildingDef def) {
        RoomDef roomDef = this.getRoom(def, "bathroom");
        int _int = 1;
        if (roomDef.area > 6) {
            _int = Rand.Next(1, 3);
        }

        this.addZombies(def, _int, Rand.Next(2) == 0 ? "Bathrobe" : "Naked", null, roomDef);
        this.addRandomItemsOnGround(roomDef, this.items, Rand.Next(2, 5));
    }
}
